const addData = require('./addData/index')
const getData = require('./getData/index');
const deleteData = require('./deleteData/index');
const updateData = require('./updatePassLevelData/index');
const updatePassTimeData = require('./updatePassTimeData/index')

// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'addData':
      return await addData.main(event, context);
    case 'getData':
      return await getData.main(event, context);
    case 'deleteData':
      return await deleteData.main(event, context);
    case 'updateData':
      return await updateData.main(event, context);
    case 'updatePassTimeData':
      return await updatePassTimeData.main(event, context);
  }
}